package ssssscala.dataframe

import org.apache.spark.sql.SQLContext
import org.apache.spark.{SparkConf, SparkContext}

/**
  * Auther: Mengkunxuan
  * Date:2018 /9/2510:08
  * Description:
  */
object DataFrameCreate {
  def main(args: Array[String]): Unit = {
    val  conf  = new SparkConf().setAppName("DataFrameCreate").setMaster("local");
    val sc =new SparkContext(conf)
    val sqlContext =new SQLContext(sc)
    val df = sqlContext.read.json("f://")
    df.show()
  }

}
